<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script src="https://unpkg.com/vue@next"></script>
<div id="app">
    <todo-item :comment-ids="[234, 166, 273]"></todo-item>
    <todo-item :comment-ids="posts.commentIds"></todo-item>
</div>
<script>
    const vueOpt = {
        data() {
            return {
                posts: {
                    commentIds: [1, 2, 3]
                }
            }
        }
    }

    const app = Vue.createApp(vueOpt);
    app.component('todo-item', {
        data() {
            return {}
        },
        props: ['commentIds'],
        template: `
            <div v-for="item in commentIds">{{item}}</div>
        `
    });

    app.mount('#app');
</script>
</body>
</html>
